/*
 * DocTiengViet.h
 *
 *  Created on: May 9, 2011
 *      Author: MongKieu
 */

#ifndef DOCTIENGVIET_H_
#define DOCTIENGVIET_H_
#include<FBase.h>
#include<FGraphics.h>
#include<FMedia.h>
#include "ITextReader.h"
#include"FIO.h"
class VietnameseReader : public Osp::Media::IPlayerEventListener,
						 public ITextReader{
public:
	VietnameseReader();
	virtual ~VietnameseReader();
private:
	Osp::Media::Player*pPlayer;
	Osp::Graphics::BufferInfo bufferInfoForVideo;
	Osp::Base::Collection::ArrayList*listWord;
	int index;
public:

	void OnPlayerOpened(result r);
	void OnPlayerEndOfClip(void);
	void OnPlayerBuffering(int percent);
	void OnPlayerErrorOccurred(Osp::Media::PlayerErrorReason r);
	void OnPlayerInterrupted();
	void OnPlayerReleased();
	void OnPlayerSeekCompleted(result r);

	result talk();
	result readText(Osp::Base::String text);
	result readText();
	result createPathOfFile();
};

#endif /* DOCTIENGVIET_H_ */
